.class public final Lnbisdk/jd;
.super Lnbisdk/lq;

# interfaces
.implements Lnbisdk/iz;


# instance fields
.field private mF:Lnbisdk/es;

.field private mG:Lnbisdk/gt;


# direct methods
.method public constructor <init>(Lnbisdk/gt;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/lq;-><init>()V

    iput-object p1, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    return-void
.end method


# virtual methods
.method public final a(Lnbisdk/dz;)V
    .locals 1

    iget-object v0, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    invoke-interface {v0, p0}, Lnbisdk/gt;->onRequestCancelled(Lcom/navbuilder/nb/b;)V

    return-void
.end method

.method public final a(Lnbisdk/dz;I)V
    .locals 1

    iget-object v0, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    invoke-interface {v0, p2, p0}, Lnbisdk/gt;->onRequestProgress(ILcom/navbuilder/nb/b;)V

    return-void
.end method

.method public final a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/jd;->cB:Z

    iget-object v0, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    invoke-interface {v0, p2, p0}, Lnbisdk/gt;->onRequestError(Lcom/navbuilder/nb/NBException;Lcom/navbuilder/nb/b;)V

    return-void
.end method

.method public final a(Lnbisdk/dz;Lnbisdk/fk;)V
    .locals 5

    const-wide/16 v3, 0x4

    const/4 v2, 0x2

    const/4 v0, 0x0

    :try_start_0
    iput-boolean v0, p0, Lnbisdk/jd;->cB:Z

    iget-object v0, p0, Lnbisdk/jd;->mF:Lnbisdk/es;

    invoke-static {p2, v0}, Lnbisdk/la;->a(Lnbisdk/fk;Lnbisdk/ha;)Lnbisdk/nm;

    move-result-object v0

    invoke-static {p2}, Lnbisdk/jd;->b(Lnbisdk/fk;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/nm;->c(Ljava/lang/Object;)V

    invoke-static {p2}, Lnbisdk/jd;->c(Lnbisdk/fk;)Z

    move-result v1

    invoke-virtual {v0, v1}, Lnbisdk/nm;->t(Z)V

    iget-object v1, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    invoke-interface {v1, v0}, Lnbisdk/gt;->a(Lnbisdk/lj;)V

    iget-object v0, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    invoke-interface {v0, p0}, Lnbisdk/gt;->onRequestComplete(Lcom/navbuilder/nb/b;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    const-string v1, "Internal Exception on Fuel Search Handling"

    invoke-static {v1, v3, v4, v2}, Lnbisdk/pn;->a(Ljava/lang/String;JB)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v3, v4, v2}, Lnbisdk/pn;->a(Ljava/lang/String;JB)V

    iget-object v1, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    new-instance v2, Lcom/navbuilder/nb/NBException;

    const/16 v3, 0x42

    invoke-direct {v2, v3, v0}, Lcom/navbuilder/nb/NBException;-><init>(ILjava/lang/Exception;)V

    invoke-interface {v1, v2, p0}, Lnbisdk/gt;->onRequestError(Lcom/navbuilder/nb/NBException;Lcom/navbuilder/nb/b;)V

    goto :goto_0
.end method

.method public final a(Lnbisdk/mh;)V
    .locals 2

    iget-boolean v0, p0, Lnbisdk/jd;->cB:Z

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Another request is in progress"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/jd;->cB:Z

    new-instance v0, Lnbisdk/es;

    invoke-direct {v0, p1, p0}, Lnbisdk/es;-><init>(Lnbisdk/em;Lnbisdk/iz;)V

    iput-object v0, p0, Lnbisdk/jd;->mF:Lnbisdk/es;

    iget-object v0, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    invoke-interface {v0, p0}, Lnbisdk/gt;->onRequestStart(Lcom/navbuilder/nb/b;)V

    iget-object v0, p0, Lnbisdk/jd;->mF:Lnbisdk/es;

    invoke-virtual {v0}, Lnbisdk/es;->start()V

    return-void
.end method

.method public final b(Lnbisdk/dz;)V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/jd;->cB:Z

    iget-object v0, p0, Lnbisdk/jd;->mG:Lnbisdk/gt;

    invoke-interface {v0, p0}, Lnbisdk/gt;->onRequestTimedOut(Lcom/navbuilder/nb/b;)V

    return-void
.end method

.method public final cancelRequest()V
    .locals 1

    iget-boolean v0, p0, Lnbisdk/jd;->cB:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/jd;->mF:Lnbisdk/es;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/jd;->mF:Lnbisdk/es;

    invoke-virtual {v0}, Lnbisdk/es;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/jd;->mF:Lnbisdk/es;

    :cond_0
    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/jd;->cB:Z

    return-void
.end method
